<% if (session.getAttribute("user") != null) { pageContext.forward("/tcs"); } %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; utf-8">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/main.css"/> 
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/jquery-ui-1.8.21.custom.css"/>
<script src="${pageContext.request.contextPath}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
<title>Страничка</title>
</head>
<body>
<div id="wrapper">
	<div id="header">
		<span class="logo"><img src="${pageContext.request.contextPath}/img/header-logo.png" /></span>
		<span class="logo_text"> Проект: "Образование"</span>
	</div>
	<div id="content">
		<span style="color: green;"><%=(request.getAttribute("message") != null) ? request.getAttribute("message") : ""%></span>
		<div id="enter_box">
			<h1>Вход</h1>
			<form method="post" action="${pageContext.request.contextPath}/tcs">
				<div class="row"><div class="left">Имя:</div> <div class="right"><input name="user" type="text" /></div></div>
				<div style="clear:both;"></div>
				<div class="row"><div class="left">Пароль:</div> <div class="right"><input name="pass" type="password" /></div></div>
				<div style="clear:both;"></div>
				<div class="row"><input type="submit" class="button"></div>			
			</form>
		</div>
	</div>
	
</div> <!-- wrapper -->
<div id="footer">
	<div id="footer_wrapper">
		<div id="footer_content">
		</div>
		<div class="image">
	         <a href="http://www.epam.com/"> <img title="EPAM Systems" alt="Excellence in Software Engineering" src="${pageContext.request.contextPath}/img/footer-logo.png"> </a>
	    </div>
	    <div class="text">
	          &copy; 1993-2012.
	         EPAM Systems. All Rights Reserved.
	        <a href="http://www.epam.com/privacy.html">Privacy Policy</a>
	 	</div>
	 </div>
</div>
<script type="text/javascript">
<!--
	$(function(){
		$(".button").button();			
	});
//-->
</script>
</body>
</html>
